<html>
<head><meta charset="utf-8"><title>MutexGuard::__lock · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/MutexGuard.3A.3A__lock.html">MutexGuard::__lock</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="182660127"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/MutexGuard%3A%3A__lock/near/182660127" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/MutexGuard.3A.3A__lock.html#182660127">(Dec 05 2019 at 13:46)</a>:</h4>
<p><code>MutexGuard</code> still <a href="https://github.com/rust-lang/rust/blob/d825e35ee8325146e6c175a4c61bcb645b347d5e/src/libstd/sync/mutex.rs#L145" target="_blank" title="https://github.com/rust-lang/rust/blob/d825e35ee8325146e6c175a4c61bcb645b347d5e/src/libstd/sync/mutex.rs#L145">has fields like <code>__lock</code></a>... hasn't that deref coercion interaction with field privacy long been fixed?</p>



<a name="182660374"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/MutexGuard%3A%3A__lock/near/182660374" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/MutexGuard.3A.3A__lock.html#182660374">(Dec 05 2019 at 13:49)</a>:</h4>
<p>I think it has, we probably just never got around to editing std</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>